package com.ning.farm_income_back.mapper;

import com.ning.farm_income_back.domain.Users;
import org.apache.ibatis.annotations.MapKey;

import java.util.List;
import java.util.Map;

/**
* @author DELL
* @description 针对表【users】的数据库操作Mapper
* @createDate 2025-04-23 22:15:41
* @Entity com.ning.farm_income_back.domain.Users
*/
public interface UsersMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Users record);

    int insertSelective(Users record);

    Users selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Users record);

    int updateByPrimaryKey(Users record);

    List<Users> selectBy(Users users);

    Users selectByUsername(String username);

    Users selectByPhone(String phone);

    Users selectByRealName(String ownerName);


    List<Integer> selectNumByRole();
}
